package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;


/**
 *攻略点评
 */
@Setter
@Getter
public class StrategyComment extends BaseDomain{
    //只有发布状态时,才能回显
    public static final Integer STATE_COMMON = 0;//普通
    public static final Integer STATE_ISSUE = 1;//发布

    //点评用户
    private User user;
    //点评时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    //点评时间
    private String content;
    //图片
    private String imgUrls;
    //星级
    private Integer starNum;
    //对应的攻略(被点评的攻略)
    private Strategy strategy;
    //是否公开
    private Integer state;
    //推荐时间
    private Date commendTime;
}